﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GaiNo.Core.Data
{
    public class EntityBase
    {
        /// <summary>
        /// 增
        /// </summary>
        public void Create()
        {
            Mapper.Instance().Create(this);
        }
        /// <summary>
        /// 改
        /// </summary>
        public void Update()
        {
            Mapper.Instance().Update(this);
        }
        /// <summary>
        /// 删除
        /// </summary>
        public void Delete()
        {
            Mapper.Instance().Delete(this);
        }
    }
}
